<template>
  <div id="agreement">
    <div class="title">{{ props.agreementTitle }}</div>
    <div class="content">

      <div v-for="(item, index) in props.contentList" :class="['items', item == 'br' ? 'mt-30' : '']" :key="item">
        {{ item == 'br' ? "" : item }}
      </div>
    </div>
    <div class="party-a">
      <div class="ft">
        <span>{{ props.company ? props.company : '甲方：方田教育' }}</span>
      </div>
      <div class="date">
        <span>日期：</span>
        {{ props.time }}
      </div>
      <img src="@/assets/images/applicationDetail/seal.png" alt="" srcset="" />
    </div>
    <div class="party-b">
      <div class="ft">
        <div class="sign">
          <span>乙方：</span>
          <!-- v-show="!signature" -->
          <img :src="props.url" class="sign-img" alt="" />
        </div>
      </div>
      <div class="date">
        <span>日期：</span>
        {{ props.time }}
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import { ref, defineProps } from 'vue';
const clickStatus: any = {};
const currentDay = ref(clickStatus.currentDay)
const signature = ref<string>('');
const props = defineProps(['contentList', 'agreementTitle', 'indexList', 'url', "time", 'company']);
</script>

<style lang="less" scoped>
#agreement {
  width: 100%;
  height: 100%;
  overflow: auto;
  padding: 17px;
  box-sizing: border-box;
  background: #fff;
  color: #333;
}

.title {
  width: 100%;
  height: 40px;
  opacity: 1;
  font-size: 18px;
  font-weight: normal;
  line-height: 25px;
  text-align: center;
  letter-spacing: 0em;
  font-variation-settings: 'opsz' auto;
  color: #212121;
}

.content {
  .items {
    margin-top: 5px;
  }
}

.mt-30 {
  margin-top: 20px !important;
}


.btn-area {
  position: absolute;
  top: 20px;
  right: 75px;
  display: flex;

  .btns {
    line-height: 44px;
    text-align: center;
    color: #fff;
    width: 111px;
    height: 44px;
    background: #209ee4;
    border-radius: 5px;

    &:nth-child(1) {
      margin-right: 20px;
      color: #f56c56;
      background: #f5f7fb;
      border: 1px solid #b3c0c8;
    }
  }
}

.back {
  position: absolute;
  top: 30px;
  left: 30px;
  display: flex;
  color: #333;
  font-size: 16px;
  display: flex;
  align-items: center;

  span {
    margin-left: 10px;
  }
}

.sign {
  display: flex;
  height: 70px;
  align-items: center;

  .start-sign {
    // color: #409eff;
    width: 173px;
    height: 30px;
    background: #f4f6f8;
    border-radius: 5px;
  }

  .sign-img {
    margin-left: 20px;
    width: 130px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
}

.party-a {
  // margin: 24px 0;
  margin-top: 24px;
  line-height: 26px;
  position: relative;

  img {
    width: 70px;
    position: absolute;
    left: 10%;
    top: -13%;
  }
}

.date {
  span {
    &:nth-child(2n) {
      text-decoration: underline;
      margin: 0 5px;
    }
  }
}

.sub-btn {
  width: 95%;
  height: 44px;
  background: #209ee4;
  border-radius: 5px;
  line-height: 44px;
  text-align: center;
  color: #fff;
  font-size: 14px;
  margin: 0 auto;
  margin-bottom: 10px;
  margin-top: 20px;

  span {
    font-size: 14px !important;
  }
}
</style>
